package com.sgj.handler;

import com.alipay.api.AlipayApiException;
import com.sgj.enums.PayTypeEnum;
import org.springframework.beans.factory.InitializingBean;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.math.BigDecimal;

/**
 * 模板方法设计模式
 * @author 沈国纪
 * @date 2022/1/3 15:48
 */
public abstract class AbstractHandler implements InitializingBean {

	public void pay(String orderName, String orderNo, BigDecimal amount, HttpServletResponse response) throws IOException, AlipayApiException {throw new UnsupportedOperationException();}

	public String pay2(PayTypeEnum payTypeEnum) {throw new UnsupportedOperationException();}
}